package com.ruoyi.quality.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.base.domain.Product;
import com.ruoyi.stock.domain.WarehouseIn;
import com.ruoyi.stock.domain.WarehouseOut;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 质检对象 t_quality_inspection
 *
 * @author ruoyi
 * @date 2024-10-25
 */
@Data
public class QualityInspection extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private Integer id;

    /**
     * 质检时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd hh-MM-ss")
    @Excel(name = "质检时间", width = 30, dateFormat = "yyyy-MM-dd hh-MM-ss")
    private LocalDateTime qualityInspectionTime;

    /**
     * 质检人(员工id)
     */
    @Excel(name = "质检人(员工id)")
    private Long userId;

    /**
     * 合格数
     */
    @Excel(name = "合格数")
    private Integer acceptance;

    /**
     * 不合格数
     */
    @Excel(name = "不合格数")
    private Integer disqualification;

    /**
     * 备注描述
     */
    @Excel(name = "备注描述")
    private String description;

    /**
     * 质检类型(0:采购入库检；1:生产入库检；2:销售出货检)
     */
    @Excel(name = "质检类型(0:采购入库检；1:生产入库检；2:销售出货检)")
    private Integer qualityInspectionType;

    /**
     * 入库id
     */
    @Excel(name = "入库id")
    private Integer warehouseInId;

    /**
     * 出库id
     */
    @Excel(name = "出库id")
    private Integer warehouseOutId;

    @Excel(name = "销售出库产品id")
    private Integer saleOutProductId;

    @Excel(name = "质检状态")
    private Integer status;

    private Integer warehouseInStatus;
    private Integer warehouseOutStatus;
    private Integer goodsType;

    /*质检人*/
    private String userName;

    /*入库表*/
    private WarehouseIn warehouseIn;
    /*出库表*/
    private WarehouseOut warehouseOut;

    private List<QualityInspection> list;
}